home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1998 January / PC Answers Issue 49 Cover CD January 1998.iso / Apps / Director / DATA.Z / Tweening.dir / Standard Elements_2_Initialize Standard Movie Handlers.ls < prev    next >
Encoding:
Text File  |  1997-05-10  |  736 b   |  43 lines

  1. on openWindow
  2.   if the windowType of the activeWindow <> 4 then
  3.     set the windowType of the activeWindow to 4
  4.     set the title of the activeWindow to the movieName
  5.   end if
  6. end
  7.  
  8. on closeWindow
  9.   if count(the windowList) < 2 then
  10.     clearGlobals()
  11.   end if
  12.   forget(the activeWindow)
  13. end
  14.  
  15. on activateWindow
  16.   continue()
  17. end
  18.  
  19. on deactivateWindow
  20.   pause()
  21. end
  22.  
  23. on initStandardElements
  24.   global gMaxChannels, gTweeningButtonPropertyList
  25.   set gMaxChannels to 48
  26.   if not voidp(gTweeningButtonPropertyList) then
  27.     nothing()
  28.   else
  29.     BuildButtonPropertyList([])
  30.     set gTweeningButtonPropertyList to the result
  31.   end if
  32. end
  33.  
  34. on stopMovie
  35.   sound stop 1
  36.   sound stop 2
  37.   forget(the activeWindow)
  38. end
  39.  
  40. on idle
  41.   doRollOverCheck()
  42. end
  43.